;; package --- 界面配置

;;去掉菜单栏
(menu-bar-mode -1)

;;去掉工具栏
(tool-bar-mode -1)

;;去掉滚动条
(scroll-bar-mode -1)

;;显示行号
(global-display-line-numbers-mode 1)

;;显示对称括号
(show-paren-mode t)

;;??
(delete-selection-mode t)

;;自然换行
(setq-default word-wrap nil)

;;??
(setq inhibit-splash-screen t)

;;不自动备份
(setq make-backup-files nil)

;;左上角的标题栏
(setq frame-title-format "Tony@%f")

;;主题
(load-theme 'tango-dark)
(load-theme 'deeper-blue)


;;英文字体
(when (eq system-type 'windows-nt)
  ;;  (set-frame-font "Consolas-11")
  (set-frame-font "Cascadia Code-10")
  )

;;中文字体
(dolist (charset '(kana han symbol cjk-misc bopomofo))
  (set-fontset-font (frame-parameter nil 'font)
                    charset
                    (font-spec :family "Microsoft YaHei" :size 16)))

(provide 'init-ui)
;;; init-ui.el ends here
